<div class="ui-g-12 p-20 p-b-0">
    <p-panel headerClass="bg-none" [showScroll]="true" marginHeight='80'>
        <p-header>
            <div class="text-right p-6-0">
                <span class="border-l-1a8fe8 p-l-8 pull-left m-t-8">{{kCode?'编辑工人':'添加工人'}}</span>
                <button pButton type="button" (click)="checkData();form.form.valid?save('submit'):submited = true" class="btn {{kCode?'btn-secondary':'btn-success'}}" label="保存"></button>
                <button pButton type="button" (deClick)="back()" label="取消" class="btn btn-secondary m-l-8"></button>
            </div>
        </p-header>
        <!--<div class="ui-g-12 b-1-s-g ">-->
        <form #form="ngForm" (ngSubmit)="form.form.valid" novalidate class="form-horizontal" role="form">
            <!-- 工人信息 -->
            <div class="ui-g-12 ui-g-nopad">
                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        所属项目工队：
                    </div>
                    <div class="table-cell  relative">
                        <p-dropdown placeholder="项目工队" [style]="{width: '100%'}" [options]="teamInfoArr" [(ngModel)]="selectObj.teamInfo" [ngModelOptions]="{standalone: true}"
                            optionLabel="name" dataKey='id' #teamInfo="ngModel" required [disabled]="teamId"> </p-dropdown>
                        <p-message styleClass="p-right" [severity]="'error'" [text]="{'请选择项目工队':teamInfo.errors?.required&&(teamInfo.touched || submited)}">
                        </p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        账号：
                    </div>
                    <div class="table-cell  relative">
                        <input type="text" size="30" pInputText [disabled]="(kCode!='')||(codeCase==2)" maxlength="25" name="code" #code="ngModel"
                            required [(ngModel)]="objToPost.code" placeholder="请输入账号" (focus)="codeflag=false;" [ngClass]="(code.errors?.required&&(code.touched || submited) || codeCase==0 || codeCase==3) ? 'p-input-error' : ''"
                            (blur)="checkCode(code);codeflag=true" (keyup)="clearVerifySta('telephoneCase')">
                        <div *ngIf="codeflag">
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'请输入账号':code.errors?.required&&(code.touched || submited),'该账号已被占用':codeCase==0,'请求超时,验证失败':codeCase==3}">
                            </p-message>
                        </div>

                        <!-- <p-message styleClass="p-right" [severity]="'success'" [text]="{'验证成功,可以使用':codeCase==1}"></p-message> -->
                        <!-- <p-message styleClass="p-right" [severity]="'warn'" [text]="{'验证中,请稍等':codeCase==2}"></p-message> -->
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        身份证号:
                    </div>
                    <div class="table-cell relative">
                        <input type="text" size="30" pInputText maxlength="25" (focus)="idNumberFlag=false;" name="idNumber" #idNumber="ngModel"
                            required [(ngModel)]="objToPost.idNumber" placeholder="请输入身份证号" (blur)="checkIdNumber(idNumber);idNumberFlag=true"
                            (keyup)="clearVerifySta('idNumberCase')" pattern="(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)"
                            [ngClass]="(idNumber.errors?.required&&(idNumber.touched || submited) || idNumber.errors?.pattern || idNumberCase==0 || idNumberCase==3) ? 'p-input-error' : ''">
                        <div *ngIf="idNumberFlag">
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'请输入身份证号':idNumber.errors?.required&&(idNumber.touched || submited),'请填写正确的身份证号':idNumber.errors?.pattern,'该身份证号已被占用':idNumberCase==0,'请求超时,验证失败':idNumberCase==3}">
                            </p-message>
                        </div>

                        <!-- <p-message styleClass="p-right" [severity]="'success'" [text]="{'验证成功,可以使用':idNumberCase==1}"></p-message> -->
                        <!-- <p-message styleClass="p-right" [severity]="'warn'" [text]="{'验证中,请稍等':idNumberCase==2}"></p-message> -->
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        手机号：
                    </div>
                    <div class="table-cell relative">
                        <input type="text" size="30" pInputText (focus)="telephoneFlag=false;" [disabled]="telephoneCase==2" maxlength="11" name="telephone"
                            #telephone="ngModel" required [(ngModel)]="objToPost.telephone" placeholder="请输入手机号" pattern="^(1[3|4|5|7|8][\d]{9}|0[\d]{2,3}-[\d]{7,8}|400[-]?[\d]{3}[-]?[\d]{4})$"
                            (blur)="uniqueFTelephone(telephone);telephoneFlag=true;" [ngClass]="(telephone.errors?.required&&(telephone.touched || submited ) || telephone.errors?.pattern || telephoneCase==3 || telephoneCase==0) ? 'p-input-error' : ''"
                            (keyup)="clearVerifySta('telephoneCase')">
                        <div *ngIf="telephoneFlag">
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'请输入手机号': telephone.errors?.required&&(telephone.touched || submited ),'请填写正确的手机号码':telephone.errors?.pattern,'请求超时,验证失败':telephoneCase==3,'该手机号已被占用':telephoneCase==0}">
                            </p-message>
                        </div>

                        <!-- <p-message styleClass="p-right" [severity]="'success'" [text]="{'验证成功,可以使用':telephoneCase==1}"></p-message> -->
                        <!-- <p-message styleClass="p-right" [severity]="'warn'" [text]="{'验证中,请稍等':telephoneCase==2}"></p-message> -->
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        姓名：
                    </div>
                    <div class="table-cell  relative">
                        <input type="text" size="30" (focus)="nameFlag=false;" pInputText maxlength="20" name="name" #name="ngModel" required [(ngModel)]="objToPost.name"
                            placeholder="请输入姓名" class="p-input" (blur)="nameCk();nameFlag=true;" [ngClass]="(name.errors?.required&&(name.touched || submited)) ? 'p-input-error' : ''">
                        <div *ngIf="nameFlag">
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'请输入姓名':name.errors?.required&&(name.touched || submited)}">
                            </p-message>
                        </div>

                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        性别：
                    </div>
                    <div class="table-cell ">
                        <p-dropdown placeholder="请选择性别" [style]="{width: '100%'}" [options]="sexArr" [(ngModel)]="selectObj.sex" [ngModelOptions]="{standalone: true}"
                            optionLabel="name" #sex="ngModel"></p-dropdown>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        从业时间：
                    </div>
                    <div class="table-cell  relative">

                        <p-calendar placeholder="请选择从业时间" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale"
                            styleClass="p-calendar" inputStyleClass="height-full" [maxDate]="maxWorkingStartTime" [showIcon]="timeConfig.showIcon"
                            [selectOtherMonths]="timeConfig.selectOtherMonths" [dateFormat]="timeConfig.dateFormat" name="workingStartTime"
                            #workingStartTime="ngModel" [(ngModel)]="objToPost.workingStartTime" (onSelect)='workingStartTimeChange($event)'
                            required></p-calendar>
                        <p-message styleClass="p-right" [severity]="'error'" [text]="{'请选择从业时间':workingStartTime.errors?.required&&(workingStartTime.touched || submited)}">
                        </p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20">
                        从业年限：
                    </div>
                    <div class="table-cell  relative ">
                        <input type="text" size="30" pInputText [disabled]="true" maxlength="25" name="workingYearsShow" [(ngModel)]="objToPost.workingYearsShow"
                            placeholder="从业年限" class="p-input">
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        级别：
                    </div>
                    <div class="table-cell relative">
                        <p-dropdown placeholder="级别" [style]="{width: '100%'}" dataKey="code" [options]="levelArr" [(ngModel)]="selectObj.level"
                            [ngModelOptions]="{standalone: true}" optionLabel="name" #level="ngModel" required></p-dropdown>
                        <p-message styleClass="p-right" [severity]="'error'" [text]="{'请选择级别':level.errors?.required&&(level.touched || submited)}">
                        </p-message>
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20">
                        籍贯：
                    </div>
                    <div class="table-cell ">
                        <input type="text" size="30" pInputText maxlength="25" name="birthPlace" #birthPlace="ngModel" [(ngModel)]="objToPost.birthPlace"
                            placeholder="请输入籍贯" class="p-input">
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20 p-required">
                        现居地：
                    </div>
                    <div class="table-cell">
                        <p-dropdown placeholder="省" [style]="{'width':'32%'}" [options]="addressCurrentProvinceArr" [(ngModel)]="selectObj.addressCurrentProvince"
                            [ngModelOptions]="{standalone: true}" dataKey='area_code' optionLabel="area_name" (onChange)='currentChange("province");currentAddressCk()'
                            (onBlur)="checkProCityDis()"></p-dropdown>
                        <p-dropdown placeholder="市" [style]="{'width':'32%'}" [options]="addressCurrentCityArr" [(ngModel)]="selectObj.addressCurrentCity"
                            [ngModelOptions]="{standalone: true}" (onBlur)="checkProCityDis()" dataKey='area_code' optionLabel="area_name"
                            (onChange)='currentChange("city");currentAddressCk()'></p-dropdown>
                        <p-dropdown placeholder="区/镇/乡" dataKey='area_code' [style]="{'width':'32%'}" [options]="addressCurrentAreaArr" [(ngModel)]="selectObj.addressCurrentArea"
                            (onBlur)="checkProCityDis()" [ngModelOptions]="{standalone: true}" (onChange)='currentAddressCk()'
                            optionLabel="area_name"></p-dropdown>
                    </div>
                    <div class="table-cell  relative">
                        <input pInputText type="text" maxlength='25' (focus)="currentProvinceError =''" required name="addressCurrentDetail" (blur)="currentAddressCk()"
                            [(ngModel)]="objToPost.addressCurrentDetail" placeholder="请输入详细地址" [ngClass]="(currentProvinceError != '' && currentProvinceError != undefined)?'p-input-error':''">
                        <div>
                            <p-message styleClass="p-right" *ngIf="currentProvinceError" severity="error" [text]="currentProvinceError"></p-message>
                            <p-message styleClass="p-right" *ngIf="proCityDisError" severity="error" [text]="proCityDisError"></p-message>
                        </div>
                    </div>
                </div>



                <div class="table-row">
                    <div class="table-cell width-124 text-right  padding-right-20">
                        户籍所在地：
                    </div>
                    <div class="table-cell ">
                        <p-dropdown placeholder="省" [style]="{'width':'32%'}" [options]="addressBirthProvinceArr" [(ngModel)]="selectObj.addressBirthProvince"
                            [ngModelOptions]="{standalone: true}" optionLabel="area_name" (onChange)='birthChange("province")'></p-dropdown>
                        <p-dropdown placeholder="市" [style]="{'width':'32%'}" [options]="addressBirthCityArr" [(ngModel)]="selectObj.addressBirthCity"
                            [ngModelOptions]="{standalone: true}" optionLabel="area_name" (onChange)='birthChange("city")'></p-dropdown>
                        <p-dropdown placeholder="区/镇/乡" [style]="{'width':'32%'}" [options]="addressBirthAreaArr" [(ngModel)]="selectObj.addressBirthArea"
                            [ngModelOptions]="{standalone: true}" optionLabel="area_name"></p-dropdown>
                    </div>
                    <div class="table-cell width-390">
                        <input type="text" size="30" pInputText maxlength="25" name="addressBirthDetail" #addressBirthDetail="ngModel" [(ngModel)]="objToPost.addressBirthDetail"
                            placeholder="请输入详细地址" class="p-input">
                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right padding-right-20 p-required" style="vertical-align:top">
                        个人简介：
                    </div>
                    <div class="table-cell relative">
                        <textarea [rows]="4" #textarea [cols]="60" pInputTextarea autoResize="true" style="resize: none;" name="description" #description="ngModel"
                            [(ngModel)]="objToPost.description" maxlength="70" (focus)="descriptionFlag=false;" (blur)="descriptionCk();descriptionFlag=true;"
                            required [ngClass]="(description.errors?.required&&(description.touched || submited)) ? 'p-input-error' : ''" placeholder="请输入个人简介"></textarea>
                        <div class="text-right opacity06">还可输入{{70 - (objToPost.description?.length || 0)}}个字</div>
                        <div *ngIf="descriptionFlag">
                            <p-message styleClass="p-right m-t-10" [severity]="'error'" [text]="{'请输入个人简介':description.errors?.required&&(description.touched || submited)}">
                            </p-message>
                        </div>

                    </div>
                </div>
                <div>

                </div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right padding-right-20 p-required">
                        工种：
                    </div>
                    <div class="table-cell">
                        <p-checkbox *ngFor="let item of workTypeArr" value="{{item.code}}" label="{{item.name}}" name="workType" #workType="ngModel"
                            [(ngModel)]="selectObj.workType" (onChange)="workTypeChange()">
                        </p-checkbox>
                        <p-message [severity]="'error'" [text]="{'请选择工种':isWorkType==false || (selectObj.workType==undefined||selectObj.workType=='')&&(submitSta || submited)}">
                            </p-message>
                    </div>

                </div>
                <div></div>

                <div class="table-row">
                    <div class="table-cell width-124 text-right padding-right-20 p-required" style="vertical-align:top">
                        手持身份证照片：
                    </div>
                    <div class="table-cell p-d">
                        <div class="pull-left load-img" *ngIf="workPhotoArr&&workPhotoArr.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'workPhoto');" styleClass="inline-block" [images]="workPhotoArr"></p-lightboxfile>
                        </div>
                        <div class="ui-g-12 file-item-img " *ngIf="workPhotoArr.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,workPhoto)" [controlAuto]="true" #workPhoto cancelLabel='workPhoto' accept="image/png,image/bmp,image/jpeg,image/jpg"
                                [url]="fileUrl" onlyImg="true" maxFileSize="2465792" (onSelect)="onSelect($event,workPhoto);"
                                chooseLabel="上传文件" auto="true" (onUpload)="onUpload($event,workPhoto);checkWorkPhoto();" styleClass="height-full width-full absolute opacity0">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="workPhotoError" styleClass='m-t-38 ' severity="error" [text]="workPhotoError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell"></div>
                    <div class="table-cell img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-124 text-right padding-right-20 p-required" style="vertical-align:top">
                        身份证正面：
                    </div>
                    <div class="table-cell p-d">
                        <div class="pull-left load-img" *ngIf="idcardPhotoFrontArr&&idcardPhotoFrontArr.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'idcardPhotoFront');" styleClass="inline-block" [images]="idcardPhotoFrontArr"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="idcardPhotoFrontArr.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,idcardPhotoFront)" [controlAuto]="true" accept="image/png,image/bmp,image/jpeg,image/jpg"
                                #idcardPhotoFront cancelLabel="idcardPhotoFront" [url]="fileUrl" onlyImg="true" maxFileSize="2465792"
                                (onSelect)="onSelect($event,idcardPhotoFront);" chooseLabel="上传文件" auto="true" (onUpload)="onUpload($event,idcardPhotoFront);checkIdcardPhotoFront();"
                                styleClass="height-full width-full absolute opacity0">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="idcardPhotoFrontError" styleClass='m-t-38 ' severity="error" [text]="idcardPhotoFrontError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell"></div>
                    <div class="table-cell img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-124 text-right padding-right-20 p-required" style="vertical-align:top">
                        身份证反面：
                    </div>
                    <div class="table-cell p-d">
                        <div class="pull-left load-img" *ngIf="idcardPhotoReverseArr&&idcardPhotoReverseArr.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'idcardPhotoReverse')" styleClass="inline-block" [images]="idcardPhotoReverseArr"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="idcardPhotoReverseArr.length<=0">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,idcardPhotoReverse)" [controlAuto]="true" accept="image/png,image/bmp,image/jpeg,image/jpg"
                                #idcardPhotoReverse cancelLabel="idcardPhotoReverse" [url]="fileUrl" onlyImg="true" maxFileSize="2465792"
                                (onSelect)="onSelect($event,idcardPhotoReverse);" chooseLabel="上传文件" auto="true" (onUpload)="onUpload($event,idcardPhotoReverse);checkIdcardPhotoReverse();"
                                styleClass="height-full width-full absolute opacity0">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>

                        </div>
                        <p-message *ngIf="idcardPhotoReverseError" styleClass='m-t-38 ' severity="error" [text]="idcardPhotoReverseError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell"></div>
                    <div class="table-cell img-prompt opacity06 ui-g-12">只能上传jpg／png格式，文件大小不能超过2M</div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-124 padding-right-20 text-right" [ngClass]="{'p-required':isWorkTypeIn_DianGong}" style="vertical-align:top">
                        电工证附件：
                    </div>
                    <div class="table-cell mi-w-800 p-d">
                        <div class="pull-left load-img" *ngIf="electricAttachArr&&electricAttachArr.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'electricAttach');" styleClass="inline-block" [images]="electricAttachArr"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="electricAttachArr.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>
                            <p-fileUpload (onSelectError)="onSelectError($event,electricAttach)" [controlAuto]="true" accept="image/png,image/bmp,image/jpeg,image/jpg"
                                #electricAttach cancelLabel="electricAttach" [url]="fileUrl" onlyImg="false" maxFileSize="2465792"
                                (onSelect)="onSelect9($event,electricAttach);" chooseLabel="上传文件" auto="true" (onUpload)="onUpload($event,electricAttach);checkElectricAttach();"
                                styleClass="height-full width-full absolute opacity0">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="electricAttachError" styleClass='m-t-38 ' severity="error" [text]="electricAttachError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell"></div>
                    <div class="table-cell img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-124 padding-right-20 text-right  padding-right-20">
                        电工证起止日期：
                    </div>
                    <div class="table-cell  ">
                        <div class="p-w-200">
                            <p-calendar placeholder="请选择电工证开始日期" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale"
                                styleClass="p-calendar" inputStyleClass="height-full" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" name="electricAttachStartTime" #electricAttachStartTime="ngModel"
                                [maxDate]='electricAttachEndTimeMaxDate' [(ngModel)]="objToPost.electricAttachStartTime" (onSelect)="updateCalendarEndTime('electric');electricAttachChange()"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar placeholder="请选择电工证结束日期" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale"
                                styleClass="p-calendar" inputStyleClass="height-full" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" name="electricAttachEndTime" #electricAttachEndTime="ngModel"
                                [(ngModel)]="objToPost.electricAttachEndTime" [minDate]='electricAttachEndTimeMinDate' (onSelect)="updateCalendarStartTime('electric');electricAttachChange()"></p-calendar>
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'请选择电工证开始日期':(isElectricAttach=='start'||(isWorkTypeIn_DianGong&&objToPost.electricAttachStartTime==undefined))&&(submitSta||submited),'请选择电工证结束日期':(isElectricAttach=='end'||(isWorkTypeIn_DianGong&&objToPost.electricAttachEndTime==undefined))&&(submitSta||submited),'结束日期不能小于开始日期':(isElectricAttach=='false')}">
                            </p-message>
                        </div>

                    </div>
                </div>

                <div class="table-row">
                    <div class="table-cell width-124 padding-right-20 text-right" style="vertical-align:top">
                        管道证附件：
                    </div>
                    <div class="table-cell mi-w-800 p-d">
                        <div class="pull-left load-img" *ngIf="pipeCardAttachArr&&pipeCardAttachArr.length">
                            <p-lightboxfile (removeItem)="removeItem($event,'pipeCardAttach');" styleClass="inline-block" [images]="pipeCardAttachArr"></p-lightboxfile>
                        </div>
                        <div class="ui-g-3 file-item-img " *ngIf="pipeCardAttachArr.length<=19">
                            <div class="upload">
                                <div class="icon-plus"></div>
                                <div class="text">上传图片</div>
                            </div>

                            <p-fileUpload (onSelectError)="onSelectError($event,pipeCardAttach)" [controlAuto]="true" accept="image/png,image/bmp,image/jpeg,image/jpg"
                                #pipeCardAttach cancelLabel="pipeCardAttach" [url]="fileUrl" onlyImg="false" maxFileSize="2465792"
                                (onSelect)="onSelect9($event,pipeCardAttach);" chooseLabel="上传文件" auto="true" (onUpload)="onUpload($event,pipeCardAttach);checkPipeCardAttach();"
                                styleClass="height-full width-full absolute opacity0">
                                <ng-template pTemplate="file">
                                </ng-template>
                            </p-fileUpload>
                        </div>
                        <p-message *ngIf="pipeCardAttachError" styleClass='m-t-38 ' severity="error" [text]="pipeCardAttachError"></p-message>
                    </div>
                </div>
                <div class="table-row">
                    <div class="table-cell"></div>
                    <div class="table-cell img-prompt opacity06 ui-g-12">只能上传jpg／png格式，最多上传20张，文件大小不能超过2M</div>
                </div>
                <div class="table-row">
                    <div class="table-cell width-124 padding-right-20 text-right  padding-right-20">
                        管道证起止日期：
                    </div>
                    <div class="table-cell  relative">
                        <div class="p-w-200">
                            <p-calendar placeholder="请选择管道证开始日期" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale"
                                styleClass="p-calendar" inputStyleClass="height-full" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" name="pipeCardStartTime" #pipeCardStartTime="ngModel" [maxDate]='pipeCardStartTimeMaxDate'
                                [(ngModel)]="objToPost.pipeCardStartTime" (onSelect)="updateCalendarEndTime('pipe');pipeCardChange()"></p-calendar>
                        </div>
                        <span class="p-w-span">-</span>
                        <div class="p-w-200">
                            <p-calendar placeholder="请选择管道证结束日期" [dataType]="timeConfig.dataType" [monthNavigator]="timeConfig.monthNavigator" [locale]="timeConfig.locale"
                                styleClass="p-calendar" inputStyleClass="height-full" [showIcon]="timeConfig.showIcon" [selectOtherMonths]="timeConfig.selectOtherMonths"
                                [dateFormat]="timeConfig.dateFormat" name="pipeCardEndTime" #pipeCardEndTime="ngModel" [(ngModel)]="objToPost.pipeCardEndTime"
                                (onSelect)="updateCalendarStartTime('pipe');pipeCardChange()" [minDate]='pipeCardStartTimeMinDate'></p-calendar>
                            <p-message styleClass="p-right" [severity]="'error'" [text]="{'结束日期不能小于开始日期':(isPipeCard==false)}">
                            </p-message>
                        </div>
                    </div>
                </div>

            </div>
            <!-- 工人信息end -->
        </form>
    </p-panel>
</div>
